<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/9/19
 * Time: 17:38
 * name:新增学生关系
 * url:/erpStudent/addStudentSection
 */

//获取参数
$osos_osid  = $route->bodyParams['osos_osid'];          //学生id
$osos_oesid = $route->bodyParams['osos_oesid'];         //机构id

//写入数组
$insertArr = [
    'osos_osid'          => $osos_osid,
    'osos_oesid'         => $osos_oesid,
    'osos_create_time'  => time()
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_student_organization_section",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );